package com.framework.modules.live.dao;

import com.framework.modules.live.entity.LiveRoomEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 直播室信息 
 * 
 * @author MIT
 * @email litmiss@gmail.com
 * @date 2020-10-29 12:31:54
 */
public interface LiveRoomDao extends BaseMapper<LiveRoomEntity> {
    @Update("update tb_live_room set total_seconds = total_seconds + #{seconds},end_date=#{stopTime},state=#{state}  where uid=#{uid}")
    Integer updateStreamEndLiveRoom(@Param("seconds") Integer seconds, @Param("stopTime") Integer stopTime, @Param("state") Integer state, @Param("uid") Integer uid);
}
